using System;
using SBCommon.Data;
using SBCommon.Validation;

namespace SecurityModule.Entity
{
	[Table("[SEC_Application]")]
    public class Application
    {
        int _application_id;
        [Column(IsPrimaryKey=true)]
        [Validator(Required = true)]
        public int application_id
        {
            get { return _application_id; }
            set { _application_id = value; }
        }
        
        string _application_name;
        [Column]
        [Validator(MaxLength = 50 , Required = true)]
        public string application_name
        {
            get { return _application_name; }
            set { _application_name = value; }
        }

        //int _parent_id;
        //[Column]
        //[Validator(Required=true)]
        //public int parent_id
        //{
        //    get { return _parent_id; }
        //    set { _parent_id = value; }
        //}
    }
}

